/* Keytable stocks
*
* by Twilight Suzuka + Kuchiki Rukia + Urahara Kisuke
* 
*
* This file is provided as is (no warranties).
*/

#if defined _keytable_stocks_included
    #endinput
#endif
#define _keytable_stocks_included

// Stocks for get_nth, to ease use.
stock keytable_get_nth_bool(keytable_id, nth, start[] = "",&success = 0,&bool:val)
	return keytable_get_nth(keytable_id, nth, start, success, val, 1)
stock keytable_get_nth_int(keytable_id, nth, start[] = "",&success = 0,&val)
	return keytable_get_nth(keytable_id, nth, start, success, val, 1)
stock keytable_get_nth_float(keytable_id, nth, start[] = "",&success = 0,&Float:val)
	return keytable_get_nth(keytable_id, nth, start, success, val, 1)
stock keytable_get_nth_string(keytable_id, nth, start[] = "",&success = 0,val[],len)
	return keytable_get_nth(keytable_id, nth, start, success, val, len)
stock keytable_get_nth_vector(keytable_id, nth, start[] = "",&success = 0,Float:val[3])
	return keytable_get_nth(keytable_id, nth, start, success, val, 3)

// Stocks for first, to ease use.
stock keytable_first_bool(keytable_id, index[], ret[], len, &success = 0, &bool:val)
	return keytable_first(keytable_id,index,ret,len,success,val,1)
stock keytable_first_int(keytable_id, index[], ret[], len, &success = 0, &val)
	return keytable_first(keytable_id,index,ret,len,success,val,1)
stock keytable_first_float(keytable_id, index[], ret[], len, &success = 0, &Float:val)
	return keytable_first(keytable_id,index,ret,len,success,val,1)
stock keytable_first_string(keytable_id, index[], ret[], len, &success = 0, val[], val_len)
	return keytable_first(keytable_id,index,ret,len,success,val,val_len)
stock keytable_first_vector(keytable_id, index[], ret[], len, &success = 0, Float:val[3])
	return keytable_first(keytable_id,index,ret,len,success,val,3)

// Stocks for next, to ease use.
stock keytable_next_bool(keytable_id, index[], ret[], len, &success = 0, &bool:val)
	return keytable_next(keytable_id,index,ret,len,success,val,1)
stock keytable_next_int(keytable_id, index[], ret[], len, &success = 0, &val)
	return keytable_next(keytable_id,index,ret,len,success,val,1)
stock keytable_next_float(keytable_id, index[], ret[], len, &success = 0, &Float:val)
	return keytable_next(keytable_id,index,ret,len,success,val,1)
stock keytable_next_string(keytable_id, index[], ret[], len, &success = 0, val[], val_len)
	return keytable_next(keytable_id,index,ret,len,success,val,val_len)
stock keytable_next_vector(keytable_id, index[], ret[], len, &success = 0, Float:val[3])
	return keytable_next(keytable_id,index,ret,len,success,val,3)

// Stocks for prev, to ease use.
stock keytable_prev_bool(keytable_id, index[], ret[], len, &success = 0, &bool:val)
	return keytable_prev(keytable_id,index,ret,len,success,val,1)
stock keytable_prev_int(keytable_id, index[], ret[], len, &success = 0, &val)
	return keytable_prev(keytable_id,index,ret,len,success,val,1)
stock keytable_prev_float(keytable_id, index[], ret[], len, &success = 0, &Float:val)
	return keytable_prev(keytable_id,index,ret,len,success,val,1)
stock keytable_prev_string(keytable_id, index[], ret[], len, &success = 0, val[], val_len)
	return keytable_prev(keytable_id,index,ret,len,success,val,val_len)
stock keytable_prev_vector(keytable_id, index[], ret[], len, &success = 0, Float:val[3])
	return keytable_prev(keytable_id,index,ret,len,success,val,3)

// Stocks for last, to ease use.
stock keytable_last_bool(keytable_id, index[], ret[], len, &success = 0, &bool:val)
	return keytable_last(keytable_id,index,ret,len,success,val,1)
stock keytable_last_int(keytable_id, index[], ret[], len, &success = 0, &val)
	return keytable_last(keytable_id,index,ret,len,success,val,1)
stock keytable_last_float(keytable_id, index[], ret[], len, &success = 0, &Float:val)
	return keytable_last(keytable_id,index,ret,len,success,val,1)
stock keytable_last_string(keytable_id, index[], ret[], len, &success = 0, val[], val_len)
	return keytable_last(keytable_id,index,ret,len,success,val,val_len)
stock keytable_last_vector(keytable_id, index[], ret[], len, &success = 0, Float:val[3])
	return keytable_last(keytable_id,index,ret,len,success,val,3)

